package com.example.newsmanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class News {
    @TableId(type = IdType.ASSIGN_ID)
    private String newsId;

    private String title;
    private String userId;
    private String author;
    private String newsType;
    private Integer number;
    private String cover;
    private Timestamp publishTime;
    private String newsContent;
    private Long collectNumber;
    private String intro;

}
